mat1 = gr.material({1.0, 0, 0}, {0.5, 0.7, 0.5}, 25)
mat2 = gr.material({0.5, 0.5, 0.5}, {0.5, 0.7, 0.5}, 25)
mat3 = gr.material({1.0, 0.6, 0.1}, {0.5, 0.7, 0.5}, 25)
mat4 = gr.material({0.7, 0.6, 1.0}, {0.5, 0.4, 0.8}, 25)

scene_root = gr.node('root')
scene_root:translate(0,0,-150)

cylinder1 = gr.cylinder('cylinder1',30,20)
cylinder1:set_material(mat1)
cylinder1:translate(0,-50,0)
cylinder1:rotate('z',3)


cone1 = gr.cone('cone1',30,40)
cone1:set_material(mat2)
cone1:translate(0,10,0)
cone1:rotate('x', 40)

torus1 = gr.torus('torus1',10,25)
torus1:set_material(mat3)
torus1:translate(0,5,0)
torus1:rotate('x', -60)


scene_root:add_child(cylinder1)

scene_root:add_child(cone1)
scene_root:add_child(torus1)
--scene_root:add_child(cone3)


white_light = gr.light(1,0,{-100.0, 150.0, 400.0}, {0.9, 0.9, 0.9}, {1, 0, 0})
orange_light = gr.light(1,0,{400.0, 100.0, 150.0}, {0.7, 0.0, 0.7}, {1, 0, 0})

gr.render(scene_root, 'additionalprimitives.png', 500, 500,
	  {0, 0, 0}, {0, 0, -1}, {0, 1, 0}, 50,
	  {0.3, 0.3, 0.3}, {white_light, orange_light},1,0,0,0,0,0)